﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp15
{
    class Program
    {

        static void Main(string[] args)
        {

            DirectoryInfo info = new DirectoryInfo("C:\\mysolo");
            info.Create();

            FileInfo fileInfo = new FileInfo("C:\\mySolo\\test.txt");
            Console.WriteLine("文档创建时间：" + fileInfo.CreationTime);
            fileInfo.Create().Close();

            string path = "C:\\mysolo\\test.txt";

            StreamWriter streamWriter = new StreamWriter(path);
            streamWriter.WriteLine("Wowwwwwwwww");
            streamWriter.WriteLine("《小白船》");
            streamWriter.WriteLine(123456);
            streamWriter.Flush();
            streamWriter.Close();

        }
    }
}
